#! /bin/bash
proxyaddress='112.73.10.82'

if ! ip rule show |grep -q "from $proxyaddress lookup external ";then
    ip rule add from $proxyaddress lookup external
fi

if ! ip route show table external|grep -Pq "default via 112.73.10.81";then
    ip route add default via 112.73.10.81  table external
fi
#exit
exit 0